{* $Id$ *}
{include_core file="admin/lib/header.html" title="全国省级数据"}
<div class="page-header border-bottom clearfix">
    <h2 class="left">全国省级数据统计<span>搜索查看对应时间段该省相关信息</span></h2>
</div>
<div class="search-form js_advancedForm">
    <form action="records_center/admin/records_center_province" method="get" class="js_focusSearchForm">
        <p>
            <label for="" class="search-f-label">日期：</label>
            <input type="text" class="search-f-ipt1 search-f-ipt2" name="search_filter[start_date]" value="{$search_filter.start_date}" id="startDate">
            <span class="search-f-line"></span>
            <input type="text" class="search-f-ipt1 search-f-ipt2" name="search_filter[end_date]" value="{$search_filter.end_date}" id="stopDate">
        </p>
        <p><label for="" class="search-f-label"></label><button type="submit" class="btn btn-success btn-xs js_searchBtn">搜索</button></p>
    </form>
</div>

<table class="list-table">
    <thead>
    <tr>
        <th style="min-width:60px;">行号</th>
        <th style="min-width:80px;">省份</th>
        <th style="min-width:80px;">城市</th>
        <th style="min-width:80px;">合伙人</th>
        <th style="min-width:80px;">合伙人ID</th>
        <th style="min-width:60px;">大区经理</th>
        <th style="min-width:120px;">总件数</th>
        <th style="min-width:60px;">总金额</th>
        {foreach $article_category as $k=>$v}
        <th style="min-width:100px;">
            <a href="records_center/admin/sku_statistics?&search_filter[start_date]={$search_filter.start_date}&search_filter[end_date]={$search_filter.end_date}&search_filter[sku_name]={$k}">{$v}</a><br>
        </th>
        {/foreach}
    </tr>
    </thead>
    <tbody>
    {foreach $city as $k=>$v}
    <tr>
        <td>{$v.number}</td>
        <td>{$v.province}</td>
        <td>{$v.city}</td>
        <td>
            {foreach $v.agency_realname as $ke=>$va}
            <a href="order/admin/index?&search_filter[start_date]={$search_filter.start_date}&search_filter[end_date]={$search_filter.end_date}&status=1&type=1&search_filter[order_code]=&search_filter[user_name]=&search_filter[realname]={$va.0}&search_filter[progress]=-1" >{$va.0}</a><br>
            {/foreach}
        </td>
        <td>
            {foreach $v.agency_id as $ke=>$va}
            {$va}<br>
            {/foreach}
        </td>
        <td>
            {foreach $v.regional_manager as $ke=>$va}
            {$va.0}<br>
            {/foreach}
        </td>
        <td>{$v.message.total_cartons}</td>
        <td>{$v.message.aggregate_amount}</td>
        <td>
            箱数：{$v.message.in_bulk_popcorn_goods_num}<br>
            金额：{$v.message.in_bulk_popcorn_real_price}
        </td>
        <td>
            箱数：{$v.message.canning_popcorn_goods_num}<br>
            金额：{$v.message.canning_popcorn_real_price}
        </td>
        <td>
            箱数：{$v.message.chips_goods_num}<br>
            金额：{$v.message.chips_real_price}
        </td>
        <td>
            箱数：{$v.message.raw_material_goods_num}<br>
            金额：{$v.message.raw_material_real_price}
        </td>
        <td>
            箱数：{$v.message.cups_goods_num}<br>
            金额：{$v.message.cups_real_price}
        </td>
        <td>
            箱数：{$v.message.device_goods_num}<br>
            金额：{$v.message.device_real_price}
        </td>
        <td>
            箱数：{$v.message.unclassified_stores_goods_num}<br>
            金额：{$v.message.unclassified_stores_real_price}
        </td>
        <td>
            箱数：{$v.message.new_product_goods_num}<br>
            金额：{$v.message.new_product_real_price}
        </td>
    </tr>
    {foreachelse}
    <tr><td class="txtleft" colspan="12">暂无数据</td></tr>
    {/foreach}
    </tbody>
</table>

<script type="text/javascript">
    $(function(){
        // 高级搜索
        $('.js_advanced').click(function(e){
            e.preventDefault();
            var thisObj = $(this);
            var outBox  = thisObj.closest('form');
            if (thisObj.hasClass('js_isOpen')) {
                thisObj.removeClass('js_isOpen open');
                outBox.find('input').show();
                outBox.find('button').show();
                $('.js_advancedForm').hide();
            } else {
                thisObj.addClass('js_isOpen open');
                outBox.find('input').hide();
                outBox.find('button').hide();
                $('.js_advancedForm').show();
            }
        });

    });
</script>
<!--end:列表-->
{load_js file='zclip/jquery.zclip.min.js'}
{load_js file='zclip/ZeroClipboard.js'}
{include_core file="admin/lib/footer.html"}